﻿<%@ Page Language="C#" MasterPageFile="~/manage/MasterPage.master" AutoEventWireup="true" CodeFile="QuangCao.aspx.cs" Inherits="manage_Default2" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phContent" Runat="Server">
<form id="frmAds" runat="server" enctype="multipart/form-data">
         <div class="line">
            <label>&nbsp;</label>
            <h3>Quản Lý Quảng Cáo</h3>              
        </div>
        <div class="error">            
            <asp:Label ID="lbError" runat="server" Text=""></asp:Label>
        </div> 
        <div class="line">
            <label>Tên:</label>
            <asp:TextBox ID="txtName" runat="server" Width="300px"></asp:TextBox>
            <em><asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" controltovalidate="txtName" display="Dynamic" errormessage="Thông tin này là bắt buộc"></asp:requiredfieldvalidator></em>
         </div>
        <div class="line">
            <label>Logo:</label>
            <asp:FileUpload ID="fImage" runat="server" Width="305px"/>
            <em>
                <asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" controltovalidate="fImage" display="Dynamic" errormessage="File hình ảnh là bắt buộc"></asp:requiredfieldvalidator>                
                <asp:RegularExpressionValidator ID="fImageExpressionValidate" ControlToValidate="fImage" runat="server" Display="Dynamic" ErrorMessage="File không đúng định dạng hình ảnh" ValidationExpression="^.+(.jpg|.JPG|.gif|.GIF)$"></asp:RegularExpressionValidator>
            </em>
        </div> 
        <div class="line">
            <label>Link Logo:</label>
            <asp:TextBox ID="txtUrl" runat="server" Width="300px"></asp:TextBox>
            <em><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" controltovalidate="txtUrl" display="Dynamic" errormessage="Link Logo là bắt buộc"></asp:requiredfieldvalidator></em>
         </div>
          <div class="line">
            <label>Địa chỉ:</label>
            <asp:TextBox ID="txtAddress" runat="server" Width="300px"></asp:TextBox>
            <em><asp:requiredfieldvalidator id="RequiredFieldValidator4" runat="server" controltovalidate="txtAddress" display="Dynamic" errormessage="Thông tin này là bắt buộc"></asp:requiredfieldvalidator></em>
         </div>
         <div class="line">
            <label>Thông tin:</label>
            <asp:TextBox ID="txtInfo" runat="server" Width="300px" TextMode="multiLine"></asp:TextBox>
            <em><asp:requiredfieldvalidator id="RequiredFieldValidator5" runat="server" controltovalidate="txtInfo" display="Dynamic" errormessage="Thông tin này là bắt buộc"></asp:requiredfieldvalidator></em>
         </div>
          <div class="line">
            <label>Số điện thoại:</label>
            <asp:TextBox ID="txtPhone" runat="server" Width="300px"></asp:TextBox>
            <em><asp:requiredfieldvalidator id="RequiredFieldValidator6" runat="server" controltovalidate="txtPhone" display="Dynamic" errormessage="Thông tin này là bắt buộc"></asp:requiredfieldvalidator></em>
         </div>
         <div class="line">
            <label>&nbsp;</label>
            <asp:Button ID="btnSubmit" runat="server" Text="Đồng Ý" OnClick="btnSubmit_Click" />
            <input type="button" value="Hủy Bỏ" onclick="location.href='../Default.aspx'" />           
        </div>   
    </form>
</asp:Content>

